package com.gitee.cirnochat.chat.model.vo.resp;

import com.gitee.cirnochat.chat.model.vo.req.ChatSessionStatusMessageRequest;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ChatSessionStatusResponse {
    @Schema(description = "用户是否正在进行输入操作")
    private Boolean typing;

    /**
     * 会话ID
     */
    @Schema(description = "会话ID")
    private Long sessionId;

    public ChatSessionStatusResponse(ChatSessionStatusMessageRequest req){
        BeanUtils.copyProperties(req, this);
    }
}
